package com.ruoyi.machine.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备概览对象 machine
 * 
 * @author ruoyi
 * @date 2024-06-15
 */
public class Machine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Long machineId;

    /** 设备名 */
    @Excel(name = "设备名")
    private String machineName;

    /** 运行状态 */
    @Excel(name = "运行状态")
    private Long machineState;

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    /** 所属区域 */
    @Excel(name = "所属区域")
    private String areaName;

    private Long areaId;

    /** 上次开启时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上次开启时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 上次关闭时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上次关闭时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;





    public void setMachineId(Long machineId) 
    {
        this.machineId = machineId;
    }

    public Long getMachineId() 
    {
        return machineId;
    }
    public void setMachineName(String machineName) 
    {
        this.machineName = machineName;
    }

    public String getMachineName() 
    {
        return machineName;
    }
    public void setMachineState(Long machineState) 
    {
        this.machineState = machineState;
    }

    public Long getMachineState() 
    {
        return machineState;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("machineId", getMachineId())
            .append("machineName", getMachineName())
            .append("machineState", getMachineState())
            .append("areaId", getAreaId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
